<?php

namespace Miniapp\Controllers;

class SysconfigController extends BaseController {

    public function getOssSignAction() {
        $type = $_POST['type'];
        $result = service('SysConfig/SysConfigService')->getOssSignActionByType($type);
        $this->renderJson($result);
    }

    
     public function getScenarioAction() {
         header('Access-Control-Allow-Origin:*');
        $this->wxImg = "http://redpacket-video.oss-cn-hangzhou.aliyuncs.com/sucai/wangjia.jpg";
        $this->wxNickname= "阿龙";
        $id = 1;
        $result = service('Scenario/ScenarioService')->getScenario($id, $this->wxImg, $this->wxNickname);
        $this->renderJson($result);
    }
}
